/**
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.zbest.zpay.web.form;

import org.apache.commons.validator.util.ValidatorUtils;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;

/**
 * 
 *
 * @author czhou3306@gmail.com
 * @version $Id: BaseForm.java, v0.1 2017年3月23日 上午9:53:00 czhou3306@gmail.com Exp $
 */
public class BaseForm implements Validator {
    @NotEmpty
    private String name;

    /** 
     * @see org.springframework.validation.Validator#supports(java.lang.Class)
     */
    @Override
    public boolean supports(Class<?> clazz) {
        return false;
    }

    /** 
     * @see org.springframework.validation.Validator#validate(java.lang.Object, org.springframework.validation.Errors)
     */
    @Override
    public void validate(Object target, Errors errors) {

    }

}
